package com.jt.www.biz.agree.service;

import com.jt.www.domain.po.ProtocolLog;

/**
 * 阅读协议
 * Created by shaoyn on 2020/02/25.
 */
public interface ProtocolService {

    /**
     * 协议阅读日志入库
     *
     * @param protocolLog
     * @return
     */
    int agreeWithProtocol(ProtocolLog protocolLog);

    /**
     * 通过usercode 查询 该用户是否 阅读并同意过指定的协议文件
     *
     * @param userCode
     * @return
     */
    int selectProtocolLogByUserCode(String userCode, String protocolType);
}
